<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<script>
	$(document).ready(function(){
		$("#commentBtn").click(function(){
			var content = $("textarea[name=content]");
			if(content.val()==""){
				alert("내용을 입력하세요!!");
				content.focus();
				return false;
			}
			$("#commentForm").submit();
		});
	});
</script>
${requestScope.fbcvo}
<h1>덧글 업데이트</h1>
<form id="commentForm" action="freeboard.do?command=freeBoardCommentUpdate" method="post">
<textarea name="content" cols="90" rows="20">${fbcvo.content }</textarea>
<input type="hidden" name="no" value="${fbcvo.no}">
<input type="hidden" name="id" value="${fbcvo.id}">
<input type="hidden" name="time_posted" value="${fbcvo.time_posted}">
<input type="hidden" name="comf" value="${fbcvo.comf}">
<input type="hidden" name="comstep" value="${fbcvo.comstep }">
<input type="submit" value="전송"><input id="commentBtn" type="button" value="취소">